package com.travel.sight.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.travel.common.utils.PageUtils;
import com.travel.sight.entity.CommentEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author lxw
 * @email lxw@gmail.com
 * @date 2023-11-01 17:41:24
 */
public interface CommentService extends IService<CommentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CommentEntity> getCommentList(Integer attractionId);

    Integer getCommentNumByUserId(Integer userId);

    void saveComment(String content, Integer score, MultipartFile imageFile, Integer attractionId,Integer userId) throws Exception;

    void updateAfterComment(Integer attractionId, Integer userId);
}

